import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("mall_keywords",{schema:"nest-mall" } )
export class MallKeywords {

    @PrimaryGeneratedColumn({
        type:"int", 
        name:"id"
        })
    id:number;
        

    @Column("varchar",{ 
        nullable:false,
        length:90,
        name:"keyword"
        })
    keyword:string;
        

    @Column("tinyint",{ 
        nullable:false,
        default: () => "'0'",
        name:"is_hot"
        })
    isHot:number;
        

    @Column("tinyint",{ 
        nullable:false,
        default: () => "'0'",
        name:"is_default"
        })
    isDefault:number;
        

    @Column("tinyint",{ 
        nullable:false,
        default: () => "'1'",
        name:"is_show"
        })
    isShow:number;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'100'",
        name:"sort_order"
        })
    sortOrder:number;
        

    @Column("varchar",{ 
        nullable:false,
        name:"scheme_url"
        })
    schemeUrl:string;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"type"
        })
    type:number;
        
}
